@isTest
public class GenTaskTrackingHandlerTest
{

    static testMethod void GenTaskTrackingHandlerTest(){
        new GenTaskTrackingHandler();
    }
    /*static testMethod void GenTaskTrackingHandlerTest()
    {
        //创建客户
        Account acc = TestUtils.createAccount();
        insert acc;
        Id rt = Utils.getRecordTypeIdByDevNameAndObjName('迈克','Account');
        //创建我方主体
        Account acc2 = new Account(
        	Name = '迈克实业',
            RecordTypeId = rt
            
        );
        insert acc2;
       //创建合同
        Contract__c c = TestUtils.createContract();
       	c.Corpcode__c = 'MKSY';
        c.Account__c = acc.Id;
        c.Maccura__c = acc2.Id;
        c.Status__c = '已生效';
        c.TerminalCustomer__c = acc.Id;
        insert c;
        
        ProductStructure__c ps1 = new ProductStructure__c();
        ps1.Classify3__c = '仪器';
        insert ps1;
        ProductStructure__c ps2 = new ProductStructure__c();
        ps2.Classify3__c = '试剂';
        insert ps2;
        //创建仪器产品
        Product__c product = new Product__c();
        product.Category1__c='生化'; 
        product.Name='全自动尿有形成份分析仪'; 
        product.Category3__c='SYSMEX-XN专用'; 
        product.Category4__c='尿液分析仪'; 
        product.Category2__c='尿液'; 
        product.Unit__c='台'; 
        product.SerialNo__c='UF-1000i'; 
        product.Brand__c='希森美康'; 
        product.Category0__c='仪器';
        product.ProductStructure__c = ps1.Id;
        product.RecordTypeId = Utils.getRecordTypeIdByDevNameAndObjName('CompetitorProduct','Product__c');
        // product.Model__c='Mdele1';
        product.NormalRequirement1__c = 'test';
        product.NormalRequirement2__c = 'test';
        product.NormalRequirement3__c = 'test';
        product.NormalRequirement4__c = 'test';
        product.NormalRequirement5__c = 'test';
        product.NormalRequirement6__c = 'test';
        product.NormalRequirement7__c = 'test';
        product.NormalRequirement8__c = 'test';
        product.NormalRequirement9__c = 'test';
        product.NormalRequirement10__c = 'test';
        insert product;
      
        ///创建试剂产品
        Product__c product1 = new Product__c();
        product1.ProductStructure__c = ps2.Id;
        product1.Category1__c='生化'; 
        product1.Tax__c=17.0; 
        product1.Name='尿有形成份检测稀释液UPS'; 
        product1.Category3__c='SYSMEX-XN专用'; 
        product1.Category4__c='试剂'; 
        product1.Category2__c='尿液'; 
        product1.Unit__c='盒'; 
        product1.SerialNo__c='ZG801009'; 
        product1.Brand__c='希森美康'; 
        product1.Spec__c='1L*2'; 
        product1.Category0__c='试剂';
        product1.RecordTypeId = Utils.getRecordTypeIdByDevNameAndObjName('CompetitorProduct','Product__c');
        insert product1;
        
        //创建合同产品
        ContractProduct__c cp = new ContractProduct__c();
        cp.Product__c = product.Id;
        cp.Contract__c = c.Id;
        cp.Only__c = '111111';
        insert cp ;
        //创建合作标准
        CooperationStandard__c coos = new CooperationStandard__c(
        	Contract__c = c.Id,
            Account__c  = acc.Id,
            ContractProduct__c = cp.Id,
            PartsWarrantyFee__c = 10,
            NoTaxReagentAssignments__c = 10,
            ReagentAssignments__c = 10,
            ServiceCharge__c = 10,
            InstrumentMargin__c = 10,
            TotalFee__c =10
        );
        insert coos;
        //创建任务量
        ContractAssignments__c  ca1 = new ContractAssignments__c(
        	Contract__c = c.Id,
            CooperationStandard__c = coos.Id,
            Year__c = '2017年',
            NoTaxReagentAssignments__c = 11,
            ReagentAssignments__c = 11
        );
        insert ca1;
         ContractAssignments__c  ca2 = new ContractAssignments__c(
        	Contract__c = c.Id,
            CooperationStandard__c = coos.Id,
            Year__c = '2018年',
            NoTaxReagentAssignments__c = 11,
            ReagentAssignments__c = 11
        );
        
        insert ca2;
        ///创建仪器
        Equipment__c eq = new Equipment__c(
        	Product__c = product.Id,
            IMEINumber__c  = 'EQ0001',
            Account__c = acc.Id
        );
        insert eq;
        Equipment__c eq1 = [select CooperationStandard__c,Id from Equipment__c where Id =:eq.Id];
        eq1.CooperationStandard__c = coos.Id;
        update eq1;
       
    }*/
}